import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/home/Home'
import GoodsList from '@/views/home/goodList'
import Show from '@/views/show/Show'
import Cart from '@/views/cart/Cart'
import ConfirmOrder from '@/views/cart/confirmOrder'
import NowBuy from '@/views/cart/nowBuy'
import ShowAddress from '@/views/cart/showAddress'
import UpdataAddress from '@/views/cart/updataAddress'
import Address from '@/views/cart/address'
//个人中心
import My from '@/views/admin/My'
import Install from '@/views/admin/Install'
import OverPwd from '@/views/admin/overPwd'
import OverTel from '@/views/admin/overTel'
import Opinion from '@/views/admin/opinion'
import IDCart from '@/views/admin/idcart'
import checkIn from '@/views/admin/checkIn'
import overage from '@/views/admin/overage'
import rebate from '@/views/admin/rebate'
import partner from '@/views/admin/partner'
import redEnvelopes from '@/views/admin/redEnvelopes'
import order from '@/views/admin/order'
import collect from '@/views/admin/collect'
import issue from '@/views/admin/issue'
import issueDetail from '@/views/admin/issue-detail'
import userInfo from '@/views/admin/userInfo'
import nick from '@/views/admin/modifyNick'
import about from '@/views/admin/about'
import purchaseFuka from '@/views/admin/purchaseFuka'
import BackAmount from '@/views/admin/backAmount'
import BusinessContract from '@/views/admin/BusinessContract'
import BusinessInformation from '@/views/admin/BusinessInformation'
import OrderDetail from '@/views/admin/orderDetail'
import BackGoods from '@/views/admin/backGoods'
import WhereGoods from '@/views/admin/whereGoods'

//详情页
import details from '@/views/home/details'


//首页
import recharge from '@/views/home/recharge'
import businessShop from '@/views/home/businessShop'
import freeCollar from '@/views/home/freeCollar'
import search from '@/views/home/search'
import position from '@/views/home/position'


import Login from '@/components/Login'
import Forget from '@/components/Forget'
import Register from '@/components/Register'


Vue.use(Router);

export default new Router({
  routes: [
    {path: '/',name: 'Home',component: Home,meta:{navShow:true}},//首页
    {path: '/goodList',name: 'GoodsList',component: GoodsList},//商品列表
    {path: '/details',name: 'details',component: details},//商品详情
    {path: '/show',name: 'Show',component: Show},//美物欣赏
    {path: '/cart',name: 'Cart',component: Cart,meta:{navShow:true}},//购物车
    {path: '/confirmOrder',name: 'ConfirmOrder',component: ConfirmOrder},//确认订单
    {path: '/nowBuy',name: 'NowBuy',component: NowBuy},//立即购买
    {path: '/showaddress',name: 'ShowAddress',component: ShowAddress},//显示收货地址
    {path: '/address',name: 'Address',component: Address},//选择地址
    {path: '/updataAddress',name: 'UpdataAddress',component: UpdataAddress},//编辑地址
    {path: '/my',name: 'My',component: My,meta:{navShow:true}},//个人中心
    {path: '/login',name: 'Login',component: Login},//登陆
    {path: '/forget',name: 'Forget',component: Forget},//忘记密码
    {path: '/register',name: 'Register',component: Register},//注册
    {path: '/userInfo',name: 'userInfo',component: userInfo},//修改头像
    {path: '/nick',name: 'nick',component: nick},//修改昵称
    {path: '/install',name: 'Install',component: Install},//设置
    {path: '/overPwd',name: 'OverPwd',component: OverPwd},//修改密码
    {path: '/overTel',name: 'overTel',component: OverTel},//修改绑定手机
    {path: '/opinion',name: 'Opinion',component: Opinion},//意见反馈
    {path: '/idcart',name: 'IDCart',component: IDCart},//实名认证
    {path: '/checkIn',name: 'checkIn',component: checkIn},//签到
    {path: '/overage',name: 'overage',component: overage},//我的余额
    {path: '/purchaseFuka',name: 'purchaseFuka',component: purchaseFuka},//购买福卡
    {path: '/rebate',name: 'rebate',component: rebate},//返利宝
    {path: '/partner',name: 'partner',component: partner},//合伙人
    {path: '/redEnvelopes',name: 'redEnvelopes',component: redEnvelopes},//我的红包
    {path: '/order',name: 'order',component: order},//我的订单
    {path: '/orderDetail',name: 'orderDetail',component: OrderDetail},//订单详情
    {path: '/backAmount',name: 'backAmount',component: BackAmount},//申请退款
    {path: '/backGoods',name: 'backGoods',component: BackGoods},//申请退h货
    {path: '/whereGoods',name: 'whereGoods',component: WhereGoods},//查看物流
    {path: '/collect',name: 'collect',component: collect},//我的收藏
    {path: '/BusinessContract',name: 'BusinessContract',component: BusinessContract},//商家合约
    {path: '/BusinessInformation',name: 'BusinessInformation',component: BusinessInformation},//填写资料
    {path: '/about',name: 'about',component: about},//关于我们
    {path: '/issue',name: 'issue',component: issue},//问题
    {path: '/issueDetail',name: 'issueDetail',component: issueDetail},//问题详情页
    {path: '/recharge',name: 'recharge',component: recharge},//充值中心
    {path: '/businessShop',name: 'businessShop',component: businessShop},//商家店铺
    {path: '/freeCollar',name: 'freeCollar',component: freeCollar},//0元领
    {path: '/search',name: 'search',component: search},//搜索页
    {path: '/position',name: 'position',component: position},//地址定位
  ]
})
